<?
include('librerias.php');
$idperfil = $_REQUEST['idperfil'];
$subsection = $_REQUEST['subsection']; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Autos Y Refacciones</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<?=fancyscript2();?>
</head>
<body>
<?=menu_general();?>
<table width="800" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr><td colspan="4" align="right">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr><td width="90%" align="right"><div id="fb-root" align="right"></div><script src="http://connect.facebook.net/es_MX/all.js#xfbml=1"></script><fb:like href="http://www.autosyrefacciones.com" send="true" layout="button_count" width="129" show_faces="false" font="tahoma"></fb:like></td>
          <td width="10%" align="right"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-lang="es">Tweet</a>
		  <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td></tr>
		</table></td></tr>
	<tr><td width="169" style="vertical-align:top">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr><td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr><td height="140" style="vertical-align:top"><div align="center"><img src="imagenes/logo_perfil.jpg" width="161" height="130" /></div></td></tr>
                    <tr><td><img src="imagenes/perfil_horizontal.jpg" width="169" height="1" /></td></tr>
                    <tr><td class="gray12">Clientes <span class="masgris"><strong>250</strong></span></td></tr>
                    <tr><td class="black12">¿Nos recomiendas? <a href="?recomiendo=Si">Si</a>-<a href="?recomiendo=No">No</a></td></tr>
				</table>
				<table width="100%" border="0" cellspacing="0" cellpadding="0" align="right">
					<tr><td colspan="3" class="perfilsubtit" align="center"><img src="imagenes/perfil_horizontal.jpg" width="169" height="1" /></td></tr>
					<tr><td colspan="3" class="perfilsubtit" height="21">&nbsp;Amigos</td></tr>
					<tr><td width="23%" height="50" style="vertical-align:middle"><img src="imagenes/cia_thumb.jpg" width="54" height="38" /></td>
						<td width="3%" style="vertical-align:middle">&nbsp;</td>
						<td width="74%" style="vertical-align:middle" class="black12" align="justify"><a href="perfil.php?id=xx" class="style9"> Syma Automotriz</a><br />
						<span class="babygreen">Lote de Autos</span></td></tr>
					<tr><td height="50" style="vertical-align:middle"><img src="imagenes/cia_thumb.jpg" width="54" height="38" /></td>
						<td style="vertical-align:middle">&nbsp;</td>
                    	<td style="vertical-align:middle" class="black12" align="justify"><a href="perfil.php?id=xx" class="style9"> Syma Automotriz</a><br />
                    	<span class="black12" style="vertical-align:middle"><span class="babygreen">Lote de Autos</span></span></td></tr>
					<tr><td height="50" style="vertical-align:middle"><img src="imagenes/cia_thumb.jpg" width="54" height="38" /></td>
                		<td style="vertical-align:middle">&nbsp;</td>
                    	<td style="vertical-align:middle" class="black12" align="justify"><a href="perfil.php?id=xx" class="style9"> Syma Automotriz</a><br />
                    	<span class="black12" style="vertical-align:middle"><span class="babygreen">Lote de Autos</span></span></td></tr>
					<tr><td height="50" style="vertical-align:middle"><img src="imagenes/cia_thumb.jpg" width="54" height="38" /></td>
						<td style="vertical-align:middle">&nbsp;</td>
						<td style="vertical-align:middle" class="black12" align="justify"><a href="perfil.php?id=xx" class="style9"> Syma Automotriz</a><br />
						<span class="black12" style="vertical-align:middle"><span class="babygreen">Lote de Autos</span></span></td></tr>
					<tr><td colspan="3"><img src="imagenes/perfil_horizontal.jpg" width="169" height="1" /></td></tr>
				</table></td></tr>
		</table></td>
    	<td width="1" style="vertical-align:top"><img src="imagenes/perfil_lateral.jpg" width="1" height="500" /></td>
    	<td width="629" style="vertical-align:top">
    		<table width="100%" border="0" cellspacing="0" cellpadding="0">
            	<?=pglobal($idperfil);?>
				<tr><td colspan="2" align="center"><img src="imagenes/linea_down.jpg" width="629" height="1" /></td></tr>
			</table>
            <?
				# Master Switch para pantallas generales
			  	switch($subsection)
					{
					case 'informacion':
						echo informacion_perfil($idperfil);
					break;
					case 'promocion':
						echo promocion_perfil($idperfil);
					break;
					case 'autos':
						echo autos_perfil($idperfil,$_REQUEST['page']);
					break;
					case 'refacciones':
						echo refacciones_perfil($idperfil);
					break;
					default:
						 echo informacion_perfil($idperfil);
					break;
					} ?></td>
    <td width="1" style="vertical-align:top"><img src="imagenes/perfil_lateral.jpg" width="1" height="500" /></td>
  </tr>
</table>
<div class="alfinal" style="width:100%;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td class="gray12" height="30">&copy;&nbsp;autosyrefacciones.com 2011.- <a href="ayuda.php">Ayuda</a></td></tr>
</table>
</div>
</body>
</html>